package demo3;

/**
 * @Author: XXHH
 * @CreateTime: 2025-01-12
 */
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("小黄",3);
        Dog dog2 = new Dog("小黄",3);
        //System.out.println(dog2 == dog);
        System.out.println(dog.equals(dog2));
    }
}
